private void saveTextRangeBtnMouseClick(object sender, MouseEventArgs e)
{
MemoryStream ms = new MemoryStream();
this.gcMuliRow1.SaveTextFileRange(ms, 2, 5,new int[]{});
byte[] byteArray= ms.ToArray();
MemoryStream ms2 = new MemoryStream(byteArray);
using (StreamReader sr = new StreamReader(ms2))
{
MessageBox.Show(sr.ReadToEnd());
}
}
Private Sub saveTextRangeBtnMouseClick(ByVal sender As Object, ByVal e As MouseEventArgs)
Dim ms As MemoryStream = New MemoryStream
Me.gcMuliRow1.SaveTextFileRange(ms, 2, 5, New Integer(-1) {})
Dim byteArray() As Byte = ms.ToArray
Dim ms2 As MemoryStream = New MemoryStream(byteArray)
Dim sr As StreamReader = New StreamReader(ms2)
MessageBox.Show(sr.ReadToEnd)
End Sub